package com.srcptit.java.training.dungvv.btvn1;

public class B6_sothuannghich {
	 public static void thuannghich(long n) {
	        long s = 0, tmp = n;
	        while (n > 0) {
	            s = s * 10 + n % 10;
	            n = n / 10;
	        }
	        if (s == tmp) {
	            System.out.println(s+" ");
	        }
	    }
	public static void main(String [] args){
		for (long i = 100000; i < 1000000; i++){
			 thuannghich(i);
		}
	}
}
